#include "log/log.h"
#include "app_mqtt.h"
#include <unistd.h>

int app_mqtt_recv(char *json)
{
    log_debug("准备处理接收到的远程数据：%s", json);
    return 0;
}
int main(int argc, char *argv[])
{
    app_mqtt_init();

    app_mqtt_registerRecvCallback(app_mqtt_recv);

    app_mqtt_send("{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}");

    //休息一会
    sleep(50);

    app_mqtt_close();

    return 0;
}